#include "Round.h"

Round::Round()
{

}

Round::Round(const QString &question, const QString &option1, const QString &option2, const QString &option3, int rightIndex)
{
    m_question  = question;
    m_rightOptionIndex  = rightIndex;
    m_options.append(option1);
    m_options.append(option2);
    m_options.append(option3);
}

Round::Round(const QString &question, const QString &option1, const QString &option2, const QString &option3, const QString &option4, int rightIndex)
{
    m_question  = question;
    m_rightOptionIndex  = rightIndex;
    m_options.append(option1);
    m_options.append(option2);
    m_options.append(option3);
    m_options.append(option4);
}

QString Round::question() const{
    return m_question;
}


int Round::optionNumber() const{
    return m_options.size();
}


int Round::rightOptionIndex() const{
    return m_rightOptionIndex;
}


QString  Round::optionAt(int index) const{
    return m_options.at(index);
}
